package com.maxjay.system.web.controller.struts;

import org.springframework.context.annotation.Scope;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Component;

@Scope("prototype")
@Component("logoutController")
public class LogoutController extends BaseController {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public String execute() {
//		HttpServletRequest request = ServletActionContext.getRequest();
		//request.getSession().setAttribute(UserInfo.SYS_USERINFO, null);
		SecurityContextHolder.clearContext();
		request.getSession().setAttribute("backUrlMap", null);
		return SUCCESS;
	}

}
